19 #ifndef CPU_LPC54114J256BD64_cm4 27 #define N 0x00 // No color 28 #define R 0x04 // Red LED 29 #define G 0x02 // Green LED 30 #define B 0x01 // Blue LED 55 uint8_t blink =
false;
82 if ((!blink) | (status != pStatus->
previous))
172 pStatus->
set(pStatus,
OFF);
180 #ifndef CPU_LPC54114J256BD64_cm4 fusion_status_t status
Current status.
clock_ip_name_t clockName
These are the state definitions for the status subsystem.
Receiving commands over wireless interface (momentary)
fusion_status_t previous
Previous status state - fusion_status_t is defined in sensor_fusion.h.
Recoverable FAULT = something went wrong, but we can keep going.
Initializing sensors and algorithms.
Non-recoverable FAULT = something went very wrong.
#define LED_RED_INIT(output)
Receiving commands over wired interface (momentary)
#define BOARD_LED_RED_GPIO_PORT
#define BOARD_LED_GREEN_GPIO_PORT
Provides function prototypes for driver level interfaces.
ssSetStatus_t * queue
queue status change for next regular interval
Application-specific status subsystem.
void ssSetLeds(int8_t RGB)
#define BOARD_LED_RED_GPIO_PIN
void ssQueueStatus(StatusSubsystem *pStatus, fusion_status_t status)
void ssTest(StatusSubsystem *pStatus)
void ssSetStatusNow(StatusSubsystem *pStatus, fusion_status_t status)
void ssSetStatus(StatusSubsystem *pStatus, fusion_status_t status)
The sensor_fusion.h file implements the top level programming interface.
gpioHandleKSDK_t GREEN_LED
#define LED_GREEN_INIT(output)
uint8_t toggle
This implementation can change LED color and have either solid/toggle.
ssSetStatus_t * set
change status immediately - no delay
ssUpdateStatus_t * update
make pending status active/visible
void initializeStatusSubsystem(StatusSubsystem *pStatus)
Running in reduced power mode.
ssUpdateStatus_t * test
unit test which simply increments to next state
void ssUpdateStatus(StatusSubsystem *pStatus)
fusion_status_t
Application-specific serial communications system.
#define BOARD_LED_GREEN_GPIO_PIN
fusion_status_t next
Pending status change.
StatusSubsystem() provides an object-like interface for communicating status to the user...